import type { PaginationParams } from '@/types';

/**
 * 字典管理相关类型定义
 */

// ============ 字典类型 ============

// 获取字典类型列表参数
export interface GetDictionaryTypesParams extends PaginationParams {
  search?: string;
  status?: string;
}

// 创建字典类型数据
export interface CreateDictionaryTypeData {
  code: string;
  name: string;
  english?: string;
  description?: string;
  status?: boolean;
}

// 更新字典类型数据
export interface UpdateDictionaryTypeData {
  code?: string;
  name?: string;
  english?: string;
  description?: string;
  status?: boolean;
}

// ============ 字典项 ============

// 获取字典项列表参数
export interface GetDictionaryItemsParams extends PaginationParams {
  typeId?: string;
  search?: string;
  status?: string;
}

// 创建字典项数据
export interface CreateDictionaryItemData {
  typeId: string;
  label: string;
  english?: string;
  value: string;
  orderNum?: number;
  status?: boolean;
  description?: string;
}

// 更新字典项数据
export interface UpdateDictionaryItemData {
  label?: string;
  english?: string;
  value?: string;
  orderNum?: number;
  status?: boolean;
  description?: string;
}


